package com.pyue.eam.admin.api.entity.regi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import com.pyue.eam.admin.api.mate.BindType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 任务费用表
 *
 * @date 2023-11-17 15:33:47
 */
@Data
@TableName("cq_task_cost")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "任务费用表")
public class CqTaskCostEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Integer id;

    /**
     * taskId
     */
    @Schema(description = "taskId")
    private Long taskId;

    /**
     * 费用类型
     */
    // @FieldBind(type = BindType.DICT + "cq_sorting_cost", target = "costTypeTrans")
    @Schema(description = "费用类型")
    private String costType;

    @TableField(exist = false)
    private String costTypeTrans;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String userAvatar;

    /**
     * 费用金额
     */
    @Schema(description = "费用金额")
    private BigDecimal amount;

    /**
     * 申请事由
     */
    @Schema(description = "申请事由")
    private String description;

    /**
     * 发生时间
     */
    @Schema(description = "发生时间")
    private String occurDate;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
